const order = {
  state: {
    // 设备增改时所用的订单
    selectedOrder: {
      selected: false,
      orderCode: '0'
    }
  },
  mutations:{
    SET_ORDER_CODE(state, payload){
      state.selectedOrder.orderCode = payload.orderCode
    }
  },
  actions:{
    SetOrderCode({ commit }, payload){
      commit({
        type: 'SET_ORDER_CODE',
        orderCode: payload.orderCode
      })
    }
  },
}

export default order;
